<?php

class Layout extends TTemplateControl
{
    public function onLoad($param)
    {       
        parent::onLoad($param);
        
          if (!$this->User->IsGuest)
          {
            $this->lbNombreUsuario->Text = "Usuario: " . $_SESSION["NOMBRE_USUARIO"];            
          }
    }

	public function logout($sender,$param)
	{
		$this->Application->getModule('auth')->logout();
		$this->Response->redirect($this->Service->constructUrl('Home'));
	}

}

?>